// 自动生成模板PmsBrand
package biz

import "github.com/go-kratos/kratos/v2/log"

// pmsBrand表 结构体  PmsBrand
type PmsBrand struct {
	BrandId     *int    `json:"brandId" form:"brandId" gorm:"primarykey;comment:品牌id;column:brand_id;size:19;"`   //品牌id
	Name        *string `json:"name" form:"name" gorm:"comment:品牌名;column:name;"`                                 //品牌名
	Logo        *string `json:"logo" form:"logo" gorm:"comment:品牌logo地址;column:logo;size:2000;"`                  //品牌logo地址
	Descript    *string `json:"descript" form:"descript" gorm:"comment:介绍;column:descript;size:4294967295;"`      //介绍
	ShowStatus  *bool   `json:"showStatus" form:"showStatus" gorm:"comment:显示状态[0-不显示；1-显示];column:show_status;"` //显示状态[0-不显示；1-显示]
	FirstLetter *string `json:"firstLetter" form:"firstLetter" gorm:"comment:检索首字母;column:first_letter;"`         //检索首字母
	Sort        *int    `json:"sort" form:"sort" gorm:"comment:排序;column:sort;size:10;"`                          //排序
}

// TableName pmsBrand表 PmsBrand自定义表名 pms_brand
func (PmsBrand) TableName() string {
	return "pms_brand"
}

type PmsBrandRepo interface {
}

type PmsBrandUsecase struct {
	repo PmsBrandRepo
	log  *log.Helper
}

func NewPmsBrandUsecase(repo GreeterRepo, logger log.Logger) *PmsBrandUsecase {
	return &PmsBrandUsecase{repo: repo, log: log.NewHelper(logger)}
}
